home *** CD-ROM | disk | FTP | other *** search
- <?php
- $sender = $HTTP_POST_VARS["email"];
- $fmtResponse= implode("", file("empfang.htt"));
- $fmtMail= implode("", file("cd-bundle-results.htt"));
- foreach($HTTP_POST_VARS as $key=> $val) {
- $fmtResponse= str_replace("<$key>", $val, $fmtResponse);
- $fmtMail= str_replace("<$key>", $val, $fmtMail);
- }
- mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail, "From: $sender\nX-Mailer: Bestellung");
- echo $fmtResponse;
- ?>